package com.example.kotlintest

fun main(){
    var list = mutableListOf(
        listOf( 1,2, 3),
        listOf("周一","周二","周三"),
        listOf('a','b','c'),
    )
    println(list)
//    flatMap函数 处理后得到一个 包含单一元素的新集合
    list.flatMap {
      it
    }.let {
        println(it)
    }

   val map= mapOf( 1 to 1,2 to 2, 3 to 3)
    map.entries.forEach {
        println(""+it.key+","+it.value)
    }

    val arrayInt= intArrayOf(1,2,3,4,5)
    val listInts=arrayInt.asList()
    listInts.forEach {
        println(it)
    }
}